﻿using System.Collections.Generic;

namespace ExcelMerge;

public partial class MergeModel
{
    public class MergeStep(List<Patch<CellDiffItem>> selfPatches, List<Patch<CellDiffItem>> otherPatches, List<Patch<CellDiffItem>> mergedPatches)
    {
        public List<Patch<CellDiffItem>> SelfPatches { get; } = selfPatches;
        public List<Patch<CellDiffItem>> OtherPatches { get; } = otherPatches;
        public List<Patch<CellDiffItem>> MergedPatches { get; } = mergedPatches;
        
        public bool HasConflict()
        {
            return SelfPatches.Count != 0 || OtherPatches.Count != 0;
        }
    }
}